<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    :confirmLoading="confirmLoading"
    :destroyOnClose="destory"
    switchFullscreen
    @ok="handleOk"
    @cancel="handleCancel"
    cancelText="关闭">
    <img :src="img" style="width:100%;height:100%;"/>
  </j-modal>
</template>

<script>

  import { httpAction } from '@/api/manage'
  import pick from 'lodash.pick'

  export default {
    name: "TraceProcess",
    components: { 
    },
    data () {
      return {
        destory:true,
        img:'',
        title:"操作",
        width:800,
        visible: false,
        model: {},
        confirmLoading: false,
      }
    },
    created () {
      console.log('img:' + this.img);
    },
    methods: {
      close () {
        this.img = '';
        this.$emit('close');
        this.visible = false;
        
      },
      handleOk () {
        this.img = '';
        this.$emit('close');
        this.visible = false;
        
      },
      handleCancel () {
        this.img = '';
        this.close()
      }

      
    }
  }
</script>